Fix typo in new-daemon ignored tests that was leading to compile errors
This commit is contained in:
+1
-1
@@ -319,7 +319,7 @@ class TestMessageCollector : MessageCollector {
|
||||
}
|
||||
}
|
||||
|
||||
fun ignore_testMessageCollector.assertHasMessage(msg: String, desiredSeverity: CompilerMessageSeverity? = null) {
|
||||
fun TestMessageCollector.assertHasMessage(msg: String, desiredSeverity: CompilerMessageSeverity? = null) {
|
||||
assert(messages.any { it.message.contains(msg) && (desiredSeverity == null || it.severity == desiredSeverity) }) {
|
||||
"Expecting message \"$msg\" with severity ${desiredSeverity?.toString() ?: "Any"}, actual:\n" +
|
||||
messages.joinToString("\n") { it.severity.toString() + ": " + it.message }
|
||||
|
||||
Reference in New Issue
Block a user