JS: improve representation of KClass for primitive types
See KT-17933, KT-17629, KT-17760
This commit is contained in:
@@ -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*/ }
|
||||
|
||||
Reference in New Issue
Block a user