We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4547f3d commit c421822Copy full SHA for c421822
core/src/main/kotlin/com/tschuchort/compiletesting/AbstractKotlinCompilation.kt
@@ -83,6 +83,7 @@ abstract class AbstractKotlinCompilation<A : CommonCompilerArguments> internal c
83
/** Report on performance of the compilation */
84
var reportPerformance: Boolean = false
85
86
+ var languageVersion: String? = null
87
88
/** Additional string arguments to the Kotlin compiler */
89
var kotlincArguments: List<String> = emptyList()
@@ -112,6 +113,9 @@ abstract class AbstractKotlinCompilation<A : CommonCompilerArguments> internal c
112
113
args.reportOutputFiles = reportOutputFiles
114
args.reportPerf = reportPerformance
115
116
+ if (languageVersion != null)
117
+ args.languageVersion = this.languageVersion
118
+
119
configuration(args)
120
121
/**
0 commit comments