default -> companion: replace all mentions of default and default object

This commit is contained in:
Pavel V. Talanov
2015-03-16 14:56:06 +03:00
parent a0783757e8
commit 06916d98c6
1019 changed files with 2468 additions and 2469 deletions
+1 -1
View File
@@ -38,7 +38,7 @@ Intuition: a JVM method whose source declaration is native is marked with the `A
A native member of an object marked `native` and `platformStatic` is translated in a straightforward way:
there is only one JVM method corresponding to it, and it is marked as `ACC_NATIVE`.
A member of a default object of class `C` marked `native` and `platformStatic` yields two JVM methods:
A member of a companion object of class `C` marked `native` and `platformStatic` yields two JVM methods:
- static member of `C` that is marked `ACC_NATIVE`;
- instance member of `C$object` that is not marked `ACC_NATIVE` and its body delegates to the native static method.