1 open class Foo { 2 } 3 4 class Bar : Foo() { 5 } 6 Foonull7 fun Foo.xyzzy() { 8 } 9 Foonull10 fun Foo.shazam() { 11 12 } 13 Barnull14 fun Bar.xyzzy() { 15 } 16 Barnull17 fun Bar.shazam(i: Int) { 18 } 19