Source file src/internal/types/testdata/check/go1_13.go

     1  // -lang=go1.13
     2  
     3  // Copyright 2021 The Go Authors. All rights reserved.
     4  // Use of this source code is governed by a BSD-style
     5  // license that can be found in the LICENSE file.
     6  
     7  // Check Go language version-specific errors.
     8  
     9  package p
    10  
    11  // interface embedding
    12  
    13  type I interface { m() }
    14  
    15  type _ interface {
    16  	m()
    17  	I // ERROR "duplicate method m"
    18  }
    19  
    20  type _ interface {
    21  	I
    22  	I // ERROR "duplicate method m"
    23  }
    24  

View as plain text