| 
									
										
										
										
											2008-07-29 19:02:49 -07:00
										 |  |  | // 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. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | // Base for the decls.go tests. | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | package base | 
					
						
							|  |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-04 15:37:47 -07:00
										 |  |  | export type Foo int | 
					
						
							| 
									
										
										
										
											2008-07-31 10:47:10 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-04 15:37:47 -07:00
										 |  |  | export type Bar *float; | 
					
						
							| 
									
										
										
										
											2008-07-31 10:47:10 -07:00
										 |  |  | 
 | 
					
						
							| 
									
										
										
										
											2008-08-04 15:37:47 -07:00
										 |  |  | export type Node struct { | 
					
						
							| 
									
										
										
										
											2008-07-29 19:02:49 -07:00
										 |  |  |   left, right *Node; | 
					
						
							| 
									
										
										
										
											2008-07-31 10:47:10 -07:00
										 |  |  |   val bool; | 
					
						
							| 
									
										
										
										
											2008-08-11 20:40:37 -07:00
										 |  |  |   f Foo; | 
					
						
							|  |  |  |   const, type, var, package int; | 
					
						
							|  |  |  | } | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export func (p *Node) case(x int) {}; | 
					
						
							|  |  |  | 
 | 
					
						
							|  |  |  | export type I interface { | 
					
						
							|  |  |  |   func(); | 
					
						
							| 
									
										
										
										
											2008-07-29 19:02:49 -07:00
										 |  |  | } |