2445d04338
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
15 lines
261 B
Kotlin
15 lines
261 B
Kotlin
package test
|
|
|
|
annotation class IntAnno
|
|
annotation class StringAnno
|
|
annotation class DoubleAnno
|
|
|
|
[IntAnno] val Int.extension: Int
|
|
get() = this
|
|
|
|
[StringAnno] val String.extension: String
|
|
get() = this
|
|
|
|
[DoubleAnno] val Double.extension: Int
|
|
get() = 42
|