From bd14c24592ed5bd8e977c27fad8adc102d6bb18a Mon Sep 17 00:00:00 2001 From: Mikhail Zarechenskiy Date: Mon, 5 Dec 2016 10:40:08 +0300 Subject: [PATCH] Allow LANGUAGE_VERSION directive in codegen tests --- .../org/jetbrains/kotlin/codegen/CodegenTestCase.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/compiler/tests-common/org/jetbrains/kotlin/codegen/CodegenTestCase.java b/compiler/tests-common/org/jetbrains/kotlin/codegen/CodegenTestCase.java index 8b8baea6a78..f2fc63f925b 100644 --- a/compiler/tests-common/org/jetbrains/kotlin/codegen/CodegenTestCase.java +++ b/compiler/tests-common/org/jetbrains/kotlin/codegen/CodegenTestCase.java @@ -1,5 +1,5 @@ /* - * Copyright 2010-2015 JetBrains s.r.o. + * Copyright 2010-2016 JetBrains s.r.o. * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -163,7 +163,8 @@ public abstract class CodegenTestCase extends KtUsefulTestCase { } if (explicitLanguageVersion != null) { - // configuration.put(CommonConfigurationKeys.LANGUAGE_VERSION_SETTINGS, new LanguageVersionSettingsImpl(explicitLanguageVersion)); + configuration.put(CommonConfigurationKeys.LANGUAGE_VERSION_SETTINGS, + new LanguageVersionSettingsImpl(explicitLanguageVersion, ApiVersion.LATEST)); } updateConfigurationWithFlags(configuration, kotlinConfigurationFlags);