disable +JDK macro in JetDiagnosticsTest and fix (actually hide) revealed bugs

+JDK was not very helpful
This commit is contained in:
Stepan Koltsov
2012-03-12 22:54:24 +04:00
parent 07ff53d456
commit 3748507ac1
84 changed files with 14 additions and 95 deletions
@@ -1,7 +1,6 @@
//KT-1001 Argument 2 for @NotNull parameter of JetFlowInformationProvider.checkIsInitialized must not be null
package kt1001
//+JDK
fun foo(<!UNUSED_PARAMETER!>c<!>: Array<Int>) {
return
@@ -1,5 +1,4 @@
//KT-1027 Strange selection of unreachable code
//+JDK
package kt1027
@@ -1,5 +1,4 @@
//KT-1066 false 'Variable cannot be initialized before declaration'
//+JDK
package kt1066
@@ -1,6 +1,5 @@
//KT-1156 Throwing exception on the right side of elvis operator marks code unreachable
//+JDK
fun foo(maybe: Int?) {
val i : Int = maybe ?: throw RuntimeException("No value")
@@ -1,6 +1,5 @@
//KT-1189 StackOverflow in ide
package kt1189
//+JDK
import java.util.concurrent.locks.ReentrantReadWriteLock
inline fun <erased T> ReentrantReadWriteLock.write(action: ()->T) : T {
@@ -1,5 +1,4 @@
//KT-1219 Incorrect 'unused value' error in closures
//+JDK
package kt1219