Project

General

Profile

Actions

Bug #36912

closed

can't parse multi-line type definitions

Added by Evgeni Golov 7 months ago. Updated 7 months ago.

Status:
Closed
Priority:
Normal
Assignee:
Difficulty:
Triaged:
No
Fixed in Releases:
Found in Releases:

Description

For Puppet, it's totally fine to have a type definition like

type Stdlib::IP::Address = Variant[
  Stdlib::IP::Address::V4,
  Stdlib::IP::Address::V6,
]

This is equivalent to
type Stdlib::IP::Address = Variant[Stdlib::IP::Address::V4,Stdlib::IP::Address::V6]

but obviously better readable for humans.

Kafo, today, will only parse this as type Stdlib::IP::Address = Variant[, and this is obviously not a correct type definition


Related issues 1 (0 open1 closed)

Has duplicate Kafo - Bug #21398: Struct handling brokenClosedActions
Actions #1

Updated by The Foreman Bot 7 months ago

  • Status changed from New to Ready For Testing
  • Pull request https://github.com/theforeman/kafo/pull/367 added
Actions #2

Updated by Anonymous 7 months ago

  • Status changed from Ready For Testing to Closed
Actions #3

Updated by Ewoud Kohl van Wijngaarden 3 months ago

  • Has duplicate Bug #21398: Struct handling broken added
Actions

Also available in: Atom PDF