Source file test/typeparam/issue48454.dir/a.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 a
     6  
     7  import "sync"
     8  
     9  type Val[T any] struct {
    10  	mu  sync.RWMutex
    11  	val T
    12  }
    13  
    14  func (v *Val[T]) Has() {
    15  	v.mu.RLock()
    16  }
    17  

View as plain text