Run slow flexible type assertions only in test mode

This commit is contained in:
Denis Zharkov
2016-02-12 16:30:14 +03:00
parent 961b72682a
commit 36606fd944
3 changed files with 43 additions and 2 deletions
@@ -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