File tree Expand file tree Collapse file tree 1 file changed +4
-0
lines changed
core/src/main/kotlin/com/tschuchort/compiletesting Expand file tree Collapse file tree 1 file changed +4
-0
lines changed Original file line number Diff line number Diff line change @@ -83,6 +83,7 @@ abstract class AbstractKotlinCompilation<A : CommonCompilerArguments> internal c
8383 /* * Report on performance of the compilation */
8484 var reportPerformance: Boolean = false
8585
86+ var languageVersion: String? = null
8687
8788 /* * Additional string arguments to the Kotlin compiler */
8889 var kotlincArguments: List <String > = emptyList()
@@ -112,6 +113,9 @@ abstract class AbstractKotlinCompilation<A : CommonCompilerArguments> internal c
112113 args.reportOutputFiles = reportOutputFiles
113114 args.reportPerf = reportPerformance
114115
116+ if (languageVersion != null )
117+ args.languageVersion = this .languageVersion
118+
115119 configuration(args)
116120
117121 /* *
You can’t perform that action at this time.
0 commit comments