From 3655b706ea22ab9d7ee02a8d5074aa583e848018 Mon Sep 17 00:00:00 2001 From: Dmitry Jemerov Date: Wed, 4 Nov 2015 14:09:53 +0100 Subject: streamline setup code --- test/src/TestAPI.kt | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/src/TestAPI.kt b/test/src/TestAPI.kt index 82353610..e65164fe 100644 --- a/test/src/TestAPI.kt +++ b/test/src/TestAPI.kt @@ -36,7 +36,8 @@ public fun verifyModel(vararg roots: ContentRoot, } } - val environment = AnalysisEnvironment(messageCollector) { + val environment = AnalysisEnvironment(messageCollector) + environment.apply { if (withJdk || withKotlinRuntime) { val stringRoot = PathManager.getResourceRoot(String::class.java, "/java/lang/String.class") addClasspath(File(stringRoot)) -- cgit