Advertisement
Guest User

Untitled

a guest
Dec 7th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  1. class MyClass {
  2. @JvmSynthetic
  3. fun f() { }
  4. }
  5.  
  6. public static void main(String[] args) {
  7. MyClass c = new MyClass();
  8. c.f() // Error: cannot resolve method f()
  9. }
  10.  
  11. fun main(args: Array<String>) {
  12. val c = MyClass()
  13. c.f() // OK
  14. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement