Message corrected for warning "some modifier is redundant because another is present"

This commit is contained in:
Mikhail Glukhikh
2016-04-06 18:35:46 +03:00
parent d79e3f322f
commit 1b2deb8a8a
3 changed files with 17 additions and 2 deletions
+9
View File
@@ -0,0 +1,9 @@
sealed <warning descr="[REDUNDANT_MODIFIER] Modifier 'abstract' is redundant because 'sealed' is present">abstract</warning> class First
<warning descr="[REDUNDANT_MODIFIER] Modifier 'abstract' is redundant because 'sealed' is present">abstract</warning> sealed class Second
abstract class Base {
abstract <warning descr="[REDUNDANT_MODIFIER] Modifier 'open' is redundant because 'abstract' is present">open</warning> fun foo()
<warning descr="[REDUNDANT_MODIFIER] Modifier 'open' is redundant because 'abstract' is present">open</warning> abstract val name: String
}