KT-11594 "Add non-null asserted (!!) call" applied to unsafe cast to nullable type causes AE at KtPsiFactory.createExpression()

#KT-11594 Fixed
This commit is contained in:
Valentin Kipyatkov
2016-04-07 20:53:47 +03:00
parent b5e89713cd
commit a68dbe78d8
4 changed files with 22 additions and 5 deletions
+7
View File
@@ -0,0 +1,7 @@
// "Add non-null asserted (!!) call" "true"
fun callMe(p: String) {}
fun callIt(p: Any) {
callMe(<caret>p as String?)
}
+7
View File
@@ -0,0 +1,7 @@
// "Add non-null asserted (!!) call" "true"
fun callMe(p: String) {}
fun callIt(p: Any) {
callMe(<caret>(p as String?)!!)
}