Text file src/go/types/testdata/check/go1_13.src

     1  // Copyright 2021 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  // Check Go language version-specific errors.
     6  
     7  package go1_13 // go1.13
     8  
     9  // interface embedding
    10  
    11  type I interface { m() }
    12  
    13  type _ interface {
    14  	m()
    15  	I // ERROR "duplicate method m"
    16  }
    17  
    18  type _ interface {
    19  	I
    20  	I // ERROR "duplicate method m"
    21  }
    22  
    23  

View as plain text