Run slow flexible type assertions only in test mode
This commit is contained in:
@@ -19,10 +19,12 @@ package org.jetbrains.kotlin.test;
|
||||
import com.intellij.testFramework.UsefulTestCase;
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
import org.jetbrains.kotlin.cli.jvm.compiler.KotlinCoreEnvironment;
|
||||
import org.jetbrains.kotlin.types.DelegatingFlexibleType;
|
||||
|
||||
public abstract class KotlinTestWithEnvironmentManagement extends UsefulTestCase {
|
||||
static {
|
||||
System.setProperty("java.awt.headless", "true");
|
||||
DelegatingFlexibleType.RUN_SLOW_ASSERTIONS = true;
|
||||
}
|
||||
|
||||
@NotNull
|
||||
|
||||
Reference in New Issue
Block a user