mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-08 15:53:19 +00:00
Minor. Added regression tests for: KT-3927, KT-9522, KT-10036, KT-7440, KT-9682, KT-9808, KT-9517, KT-9810, KT-9345.
This commit is contained in:
5
compiler/testData/codegen/boxWithJava/invokeOnSyntheticProperty/JavaClass.java
vendored
Normal file
5
compiler/testData/codegen/boxWithJava/invokeOnSyntheticProperty/JavaClass.java
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
public class JavaClass {
|
||||
public String getO() {
|
||||
return "O";
|
||||
}
|
||||
}
|
||||
7
compiler/testData/codegen/boxWithJava/invokeOnSyntheticProperty/main.kt
vendored
Normal file
7
compiler/testData/codegen/boxWithJava/invokeOnSyntheticProperty/main.kt
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
// KT-9522 Allow invoke convention for synthetic property
|
||||
|
||||
operator fun String.invoke() = this + "K"
|
||||
|
||||
fun box(): String {
|
||||
return JavaClass().o();
|
||||
}
|
||||
Reference in New Issue
Block a user