Source file test/fixedbugs/issue44335.dir/a.go

     1  // Copyright 2021 The Go Authors. All rights reserved.  Use of this
     2  // source code is governed by a BSD-style license that can be found in
     3  // the LICENSE file
     4  
     5  package a
     6  
     7  type W struct {
     8  	M func(string) string
     9  }
    10  
    11  func FM(m string) func(W) {
    12  	return func(pw W) {
    13  		pw.M = func(string) string {
    14  			return m
    15  		}
    16  	}
    17  }
    18  

View as plain text