Files
kotlin-fork/compiler/testData/loadKotlin/annotations/classMembers/ExtensionPropertiesWithSameNameNoField.txt
T
Alexander Udalov 2445d04338 Fix synthetic method generation for extension properties
If several annotated extension properties with the same name were declared in
one class, JVM issued a ClassFormatError, since we generated a synthetic method
for each of them with the same name and signature. Make the signature of this
synthetic method depend on a receiver parameter, if a property has one
2013-10-16 14:59:37 +04:00

24 lines
826 B
Plaintext

package test
internal final class Class {
/*primary*/ public constructor Class()
test.DoubleAnno() internal final val jet.Double.extension: jet.Int
internal final fun jet.Double.<get-extension>(): jet.Int
test.IntAnno() internal final val jet.Int.extension: jet.Int
internal final fun jet.Int.<get-extension>(): jet.Int
test.StringAnno() internal final val jet.String.extension: jet.String
internal final fun jet.String.<get-extension>(): jet.String
}
internal final annotation class DoubleAnno : jet.Annotation {
/*primary*/ public constructor DoubleAnno()
}
internal final annotation class IntAnno : jet.Annotation {
/*primary*/ public constructor IntAnno()
}
internal final annotation class StringAnno : jet.Annotation {
/*primary*/ public constructor StringAnno()
}