Source file test/fixedbugs/issue29389.go

     1  // compile
     2  
     3  // Copyright 2018 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  // Make sure we can correctly compile method expressions
     8  // where the method is implicitly declared.
     9  
    10  package main
    11  
    12  import "io"
    13  
    14  func main() {
    15  	err := io.EOF
    16  	_ = err.Error
    17  }
    18  

View as plain text