summaryrefslogtreecommitdiff
path: root/test/files/presentation/ide-bug-1000531/src/CrashOnLoad.scala
blob: 25e0a9580f104aec0424dc946ffece1f01fe05ca (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
/** When this files is opened within the IDE, a typing error is reported. */
class A[B] extends TestIterable[B] {
  import collection.convert.ImplicitConversionsToScala._
  def iterator: other.TestIterator[Nothing] = ???

  iterator./*!*/
}

object other {
  trait TestIterator[T] {
    def hasNext: Boolean
    def next: T
  }
}