mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-05-12 00:21:32 +00:00
Do not generate not-null assertion for argument of Collection.contains
Of course not only for contains but for other methods having INSTANCEOF bar.rier
Otherwise using platform null values becomes for such methods becomes
dangerous in cases like `platformString in setOf("", "")`
This commit is contained in:
7
compiler/testData/codegen/boxWithJava/collections/platformValueContains/J.java
vendored
Normal file
7
compiler/testData/codegen/boxWithJava/collections/platformValueContains/J.java
vendored
Normal file
@@ -0,0 +1,7 @@
|
||||
import java.util.*;
|
||||
|
||||
public class J {
|
||||
public static String nullValue() {
|
||||
return null;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user