Klitos Kyriacou
03/03/2025, 6:25 PMKlitos Kyriacou
03/03/2025, 6:25 PMopen class Base(a: Int)
class Derived1 : Base(
123, // This level of indentation looks reasonable
)
class Derived2 :
Base(
123, // Ok, Base is at 4, so parameter indented at 8
)
class Derived3(
a: Int,
) : Base(
123, // Now why should this be at 8?
) // And why should this be at 4?
class Derived4(
a: Int,
) :
Base( // Indented at 4 on new line just to show example
123, // Why is this indented at 12? Shouldn't it be 8?
) // Shouldn't this be at same level as "Base" (i.e. 4)?
Can you explain what the exact rules are?Paul Dingemans
03/03/2025, 7:36 PM