Compiler warning on identical enum constant / is type entries #KT-4829 Fixed

This commit is contained in:
Mikhail Glukhikh
2016-04-19 16:25:02 +03:00
parent d7ecd12737
commit 771fb0ace2
10 changed files with 155 additions and 3 deletions
@@ -15,9 +15,9 @@ fun test(d: Any, dl: Collection<dynamic>) {
when (d) {
is <!DYNAMIC_NOT_ALLOWED!>dynamic<!> -> {}
is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!> -> {}
is <!DYNAMIC_NOT_ALLOWED, DUPLICATE_LABEL_IN_WHEN!>dynamic?<!> -> {}
!is <!DYNAMIC_NOT_ALLOWED!>dynamic<!> -> {}
!is <!DYNAMIC_NOT_ALLOWED!>dynamic?<!> -> {}
!is <!DYNAMIC_NOT_ALLOWED, DUPLICATE_LABEL_IN_WHEN!>dynamic?<!> -> {}
}
dl as List<dynamic>