Annotations as modifiers: ambiguity


#1

Kotlin allows multiple imports with same aliases to be used as modifiers. For example:

import org.junit.Test as test

import org.junit.Before as test

Following test alias reference will be treated as org.junit.Before.

Seems like a bug. Or is this usage intended?
Thanks.


#2

This should be detected by the compiler and reported as an error. Please, file an iisue. Thanks