JS: improve representation of KClass for primitive types

See KT-17933, KT-17629, KT-17760
This commit is contained in:
Alexey Andreev
2017-09-20 10:18:09 +03:00
parent bbb571260b
commit 93a3026c6d
14 changed files with 375 additions and 40 deletions
@@ -139,6 +139,12 @@ public class JsConfig {
return getConfiguration().getList(JSConfigurationKeys.FRIEND_PATHS);
}
public boolean isAtLeast(@NotNull LanguageVersion expected) {
LanguageVersion actual = CommonConfigurationKeysKt.getLanguageVersionSettings(configuration).getLanguageVersion();
return actual.getMajor() > expected.getMajor() ||
actual.getMajor() == expected.getMajor() && actual.getMinor() >= expected.getMinor();
}
public static abstract class Reporter {
public void error(@NotNull String message) { /*Do nothing*/ }