Don't report warnings when there are errors

All sane compilers do this
This commit is contained in:
Alexander Udalov
2015-06-13 02:11:46 +03:00
parent 4cfbf5886b
commit bca5eb083e
7 changed files with 13 additions and 12 deletions
@@ -1,5 +1,3 @@
WARNING: compiler/testData/cli/js/diagnosticWhenReferenceToBuiltinsMember.kt: (4, 5) The expression is unused
WARNING: compiler/testData/cli/js/diagnosticWhenReferenceToBuiltinsMember.kt: (5, 5) The expression is unused
ERROR: compiler/testData/cli/js/diagnosticWhenReferenceToBuiltinsMember.kt: (4, 5) Callable references for builtin members are not supported yet: 'Int::toByte'
ERROR: compiler/testData/cli/js/diagnosticWhenReferenceToBuiltinsMember.kt: (5, 5) Callable references for builtin members are not supported yet: 'String::length'
COMPILATION_ERROR