1 package s1 2 3 /** 4 * Coolest one 5 */ someCoolThingnull6fun someCoolThing(s: String) = s.repeat(2) 7 8 /** 9 * Just a class 10 */ 11 class MyClass { 12 /** 13 * Ultimate answer to all questions 14 */ 15 fun otherworks(): Int = 42 16 } 17 18 /** 19 * Just a SUPER class 20 */ 21 open class Super { 22 /** 23 * Same as [MyClass.otherworks] 24 */ foonull25 fun foo(i: Int = 21) = i * 2 26 27 /** 28 * magic 29 */ 30 open fun bar() = foo() 31 }