mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-09 00:21:47 +00:00
Fix wildcards for invariant arguments
See test with Java, we want preserve the invariant that if return type and value parameter types are same in Kotlin, than we can use such return-value as argument for that parameter
This commit is contained in:
5
compiler/testData/codegen/boxWithJava/invariantArgumentsNoWildcard/JavaClass.java
vendored
Normal file
5
compiler/testData/codegen/boxWithJava/invariantArgumentsNoWildcard/JavaClass.java
vendored
Normal file
@@ -0,0 +1,5 @@
|
||||
public class JavaClass {
|
||||
public static String test() {
|
||||
return MainKt.bar(MainKt.foo());
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user