1 // Copyright 2020 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
4
5 package p
6
7 type T0 interface{
8 }
9
10 type T1 interface{
11 ~int
12 }
13
14 type T2 interface{
15 comparable
16 }
17
18 type T3 interface {
19 T0
20 T1
21 T2
22 }
23
24 func _() {
25 _ = T0(0)
26 _ = T1 /* ERROR cannot use interface T1 in conversion */ (1)
27 _ = T2 /* ERROR cannot use interface T2 in conversion */ (2)
28 _ = T3 /* ERROR cannot use interface T3 in conversion */ (3)
29 }
30
View as plain text