mirror of
				https://github.com/golang/go.git
				synced 2025-11-04 02:30:57 +00:00 
			
		
		
		
	Support for overlapping interfaces is a new (proposed) Go language feature to be supported in Go 1.14, so it shouldn't be supported under -lang=go1.13 or earlier. Fixes #34329. Change-Id: I5fea5716b7d135476980bc40b4f6e8c611b67735 Reviewed-on: https://go-review.googlesource.com/c/go/+/195678 Run-TryBot: Matthew Dempsky <mdempsky@google.com> TryBot-Result: Gobot Gobot <gobot@golang.org> Reviewed-by: Robert Griesemer <gri@golang.org>
		
			
				
	
	
		
			14 lines
		
	
	
	
		
			282 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			14 lines
		
	
	
	
		
			282 B
		
	
	
	
		
			Go
		
	
	
	
	
	
// errorcheck -lang=go1.13
 | 
						|
 | 
						|
// Copyright 2019 The Go Authors. All rights reserved.
 | 
						|
// Use of this source code is governed by a BSD-style
 | 
						|
// license that can be found in the LICENSE file.
 | 
						|
 | 
						|
package p
 | 
						|
 | 
						|
type I interface { M() }
 | 
						|
 | 
						|
type _ interface {
 | 
						|
	I
 | 
						|
	I // ERROR "duplicate method M"
 | 
						|
}
 |