Annotations as modifiers: ambiguity

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.

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