Effectively this is a return of "${facadeName}__${partName}" scheme.

Suggestions from @udalov:
- Make multifile class parts synthetic.
- Multifile class parts should have well-formed Java identifiers as names.
- Multifile class part names should contain facade name.
Add test with clashing part names.
Add test with local generic classes used in method signatures
(it works with parts names not being well-formed Java identifiers, though).

Capitalized annotations.
This commit is contained in:
Dmitry Petrov
2015-09-10 11:31:37 +03:00
parent 9b11b5300c
commit 6850e9180e
9 changed files with 60 additions and 18 deletions
@@ -0,0 +1,5 @@
@file:JvmName("Foo")
@file:JvmMultifileClass
package test
fun foo(): String = "O"
@@ -0,0 +1,5 @@
@file:JvmName("Bar")
@file:JvmMultifileClass
package test
fun bar(): String = "K"
@@ -0,0 +1,3 @@
package test
fun box(): String = foo() + bar()