Black Lives Matter. Support the Equal Justice Initiative.

Text file src/go/types/testdata/fixedbugs/issue39699.go2

Documentation: go/types/testdata/fixedbugs

     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  	type 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