summaryrefslogtreecommitdiff
path: root/test/files/neg/t2866.check
blob: bc0da7e3559cb088934cb961a189ce2c7b0d686a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
t2866.scala:30: warning: imported `one' is permanently hidden by definition of value one
    import A.one // warning: imported `one' is permanently hidden by definition of value one.
             ^
t2866.scala:42: error: ambiguous implicit values:
 both value two of type Int
 and value one in object A of type => Int
 match expected type Int
    assert(implicitly[Int] == 2) // !!! Not ambiguous in 2.8.0. Ambiguous in 2.7.6
                     ^
t2866.scala:50: error: ambiguous implicit values:
 both value two of type Int
 and value one in object A of type => Int
 match expected type Int
    assert(implicitly[Int] == 2) // !!! Not ambiguous in 2.8.0. Ambiguous in 2.7.6
                     ^
one warning found
two errors found