1 package foo 2 3 /** 4 * Function with receiver 5 */ fnnull6 fun String.fn() { 7 } 8 9 /** 10 * Function with receiver 11 */ fnnull12 fun String.fn(x: Int) { 13 } 14 15 /** 16 * Property with receiver. 17 */ 18 val String.foobar: Int 19 get() = size() * 2 20