Source file test/typeparam/issue48185b.dir/main.go

     1  // Copyright 2021 The Go Authors. All rights reserved.
     2  // Use of this source code is governed by a BSD-style
     3  // license that can be found in the LICENSE file.
     4  
     5  package main
     6  
     7  import (
     8  	"./a"
     9  	"fmt"
    10  )
    11  
    12  func main() {
    13  	_ = a.UnmarshalOptions1{
    14  		Unmarshalers: a.UnmarshalFuncV2(func(opts a.UnmarshalOptions1, dec *a.Decoder1, val *interface{}) (err error) {
    15  			return fmt.Errorf("error")
    16  		}),
    17  	}
    18  }
    19  

View as plain text