Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for JsonRaw (0.57 sec)

  1. test/typeparam/issue51219.dir/a.go

    // Type I is the first basic test for the issue, which relates to a type that is recursive
    // via a type constraint.  (In this test, I -> IConstraint -> MyStruct -> I.)
    type JsonRaw []byte
    
    type MyStruct struct {
    	x *I[JsonRaw]
    }
    
    type IConstraint interface {
    	JsonRaw | MyStruct
    }
    
    type I[T IConstraint] struct {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 28 14:59:04 UTC 2022
    - 487 bytes
    - Viewed (0)
  2. test/typeparam/issue51219.dir/main.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    import (
    	"./a"
    	"fmt"
    )
    
    func main() {
    	var x a.I[a.JsonRaw]
    
    	fmt.Printf("%v\n", x)
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Mar 24 02:14:15 UTC 2022
    - 262 bytes
    - Viewed (0)
Back to top