diff options
author | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-13 19:29:01 +0000 |
---|---|---|
committer | Android Build Coastguard Worker <android-build-coastguard-worker@google.com> | 2022-06-13 19:29:01 +0000 |
commit | 8fd51678ba9389c59b5d2eab72514586e00204a2 (patch) | |
tree | b372367a38b2d7997de0aba533d8765b5a6998ef /plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt | |
parent | a313a2cd38efda34402faaa45b2dc210f9953844 (diff) | |
parent | 94136e97c59789b2242f8eee1cd8abde4fe323d4 (diff) | |
download | intellij-kotlin-8fd51678ba9389c59b5d2eab72514586e00204a2.tar.gz |
Snap for 8709740 from 94136e97c59789b2242f8eee1cd8abde4fe323d4 to studio-dolphin-releasestudio-2021.3.1-betastudio-beta
Change-Id: I60acba3629ba543acf77426e415cd999c5252307
Diffstat (limited to 'plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt')
-rw-r--r-- | plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt b/plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt new file mode 100644 index 000000000000..b48db8e8f516 --- /dev/null +++ b/plugins/kotlin/idea/tests/testData/quickfix/addElseBranchToIf/withoutCloseParenthesisInCondition.kt @@ -0,0 +1,7 @@ +// "Add else branch" "false" +// ACTION: Replace property initializer with 'if' expression +// ERROR: 'if' must have both main and 'else' branches if used as an expression + +fun foo(x: String?) { + val a = i<caret>f ( +}
\ No newline at end of file |