File tree 1 file changed +6
-10
lines changed
presentation-compiler/test/dotty/tools/pc/tests
1 file changed +6
-10
lines changed Original file line number Diff line number Diff line change @@ -252,40 +252,36 @@ class InferExpectedTypeSuite extends BasePCSuite:
252
252
)
253
253
254
254
// bounds
255
- @ Ignore (" Bounds are not handled correctly." )
256
255
@ Test def any =
257
256
check(
258
257
""" |trait Foo
259
258
|def foo[T](a: T): Boolean = ???
260
259
|val _ = foo(@@)
261
260
|""" .stripMargin,
262
- """ |<: Any
261
+ """ |Any
263
262
|""" .stripMargin
264
263
)
265
264
266
- @ Ignore (" Bounds are not handled correctly." )
267
265
@ Test def `bounds-1` =
268
266
check(
269
267
""" |trait Foo
270
268
|def foo[T <: Foo](a: T): Boolean = ???
271
269
|val _ = foo(@@)
272
270
|""" .stripMargin,
273
- """ |<: Foo
271
+ """ |Foo
274
272
|""" .stripMargin
275
273
)
276
274
277
- @ Ignore (" Bounds are not handled correctly." )
278
275
@ Test def `bounds-2` =
279
276
check(
280
277
""" |trait Foo
281
278
|def foo[T >: Foo](a: T): Boolean = ???
282
279
|val _ = foo(@@)
283
280
|""" .stripMargin,
284
- """ |:> Foo
285
- |""" .stripMargin
281
+ """ |Foo
282
+ |""" .stripMargin // ideally Any (maybe?)
286
283
)
287
284
288
- @ Ignore (" Bounds are not handled correctly." )
289
285
@ Test def `bounds-3` =
290
286
check(
291
287
""" |trait A
@@ -294,6 +290,6 @@ class InferExpectedTypeSuite extends BasePCSuite:
294
290
|def roo[F >: C <: A](f: F) = ???
295
291
|val kjk = roo(@@)
296
292
|""" .stripMargin,
297
- """ |>: C <: A
298
- |""" .stripMargin
293
+ """ |C
294
+ |""" .stripMargin // ideally A
299
295
)
You can’t perform that action at this time.
0 commit comments