Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class MyClass {
- @JvmSynthetic
- fun f() { }
- }
- public static void main(String[] args) {
- MyClass c = new MyClass();
- c.f() // Error: cannot resolve method f()
- }
- fun main(args: Array<String>) {
- val c = MyClass()
- c.f() // OK
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement