mirror of
				https://github.com/golang/go.git
				synced 2025-10-31 08:40:55 +00:00 
			
		
		
		
	 f7e4fc9b1f
			
		
	
	
		f7e4fc9b1f
		
	
	
	
	
		
			
			bug165.go:13:6: error: invalid recursive type 'S' This is a different line from the 6g error message, which is "invalid map key type". I accomodated both compilers by merging the line. bug188.go:13:2: error: unexpected reference to package I made the error message less specific, which I think is fine here. R=rsc DELTA=2 (0 added, 0 deleted, 2 changed) OCL=33398 CL=33426
		
			
				
	
	
		
			15 lines
		
	
	
	
		
			300 B
		
	
	
	
		
			Go
		
	
	
	
	
	
			
		
		
	
	
			15 lines
		
	
	
	
		
			300 B
		
	
	
	
		
			Go
		
	
	
	
	
	
| // errchk $G $D/$F.go
 | |
| 
 | |
| // Copyright 2009 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 main
 | |
| 
 | |
| type I interface {
 | |
| 	m(map[I] bool);	// ok
 | |
| }
 | |
| 
 | |
| type S struct {
 | |
| 	m map[S] bool;	// ERROR "map key type"
 | |
| }
 |