Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 286 for Mystring (0.93 sec)

  1. src/internal/types/testdata/check/typeinst1.go

    	return x + 1
    }
    
    type MyString string
    func double[T interface{MyInt|MyString}](x T) T {
    	return x + x
    }
    
    // Embedding of interfaces with term lists leads to interfaces
    // with term lists that are the intersection of the embedded
    // term lists.
    
    type E0 interface {
    	~int | ~bool | ~string
    }
    
    type E1 interface {
    	~int | ~float64 | ~string
    }
    
    type E2 interface {
    	~float64
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 17 19:54:27 UTC 2023
    - 5.7K bytes
    - Viewed (0)
  2. src/reflect/all_test.go

    	{V(MyString("hello")), V(string("hello"))},
    	{V(string("hello")), V(MyString("hello"))},
    	{V(string("hello")), V(string("hello"))},
    	{V(MyString("hello")), V(MyString("hello"))},
    	{V(MyString("bytes1")), V([]byte("bytes1"))},
    	{V([]byte("bytes2")), V(MyString("bytes2"))},
    	{V([]byte("bytes3")), V([]byte("bytes3"))},
    	{V(MyString("runes♝")), V([]rune("runes♝"))},
    	{V([]rune("runes♕")), V(MyString("runes♕"))},
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:00:11 UTC 2024
    - 218.8K bytes
    - Viewed (0)
  3. src/internal/types/testdata/check/typeparams.go

    // range iteration
    
    func _[T interface{}](x T) {
            for range x /* ERROR "cannot range" */ {}
    }
    
    type myString string
    
    func _[
            B1 interface{ string },
            B2 interface{ string | myString },
    
            C1 interface{ chan int },
            C2 interface{ chan int | <-chan int },
            C3 interface{ chan<- int },
    
            S1 interface{ []int },
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 19 01:56:58 UTC 2023
    - 15.2K bytes
    - Viewed (0)
  4. src/internal/types/testdata/check/expr3.go

    	_ = c[3 /* ERRORx `index .* out of bounds` */ ]
    	_ = ""[0 /* ERRORx `index .* out of bounds` */ ]
    	_ = c2
    
    	_ = s[1<<30] // no compile-time error here
    
    	// issue 4913
    	type mystring string
    	var ss string
    	var ms mystring
    	var i, j int
    	ss = "foo"[1:2]
    	ss = "foo"[i:j]
    	ms = "foo" /* ERRORx `cannot use .* in assignment` */ [1:2]
    	ms = "foo" /* ERRORx `cannot use .* in assignment` */ [i:j]
    	_, _ = ss, ms
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 16 22:41:49 UTC 2023
    - 15.6K bytes
    - Viewed (0)
  5. doc/go_spec.html

    float64(-1e-1000)        // 0.0 of type float64
    string('x')              // "x" of type string
    string(0x266c)           // "♬" of type string
    myString("foo" + "bar")  // "foobar" of type myString
    string([]byte{'a'})      // not a constant: []byte{'a'} is not a constant
    (*int)(nil)              // not a constant: nil is not a constant, *int is not a boolean, numeric, or string type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 04 21:07:21 UTC 2024
    - 281.5K bytes
    - Viewed (0)
  6. doc/go1.17_spec.html

    float64(-1e-1000)        // 0.0 of type float64
    string('x')              // "x" of type string
    string(0x266c)           // "♬" of type string
    MyString("foo" + "bar")  // "foobar" of type MyString
    string([]byte{'a'})      // not a constant: []byte{'a'} is not a constant
    (*int)(nil)              // not a constant: nil is not a constant, *int is not a boolean, numeric, or string type
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Apr 11 20:22:45 UTC 2024
    - 211.6K bytes
    - Viewed (0)
  7. src/runtime/string.go

    		b = b[len(x):]
    	}
    	return s
    }
    
    func concatstring2(buf *tmpBuf, a0, a1 string) string {
    	return concatstrings(buf, []string{a0, a1})
    }
    
    func concatstring3(buf *tmpBuf, a0, a1, a2 string) string {
    	return concatstrings(buf, []string{a0, a1, a2})
    }
    
    func concatstring4(buf *tmpBuf, a0, a1, a2, a3 string) string {
    	return concatstrings(buf, []string{a0, a1, a2, a3})
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 23 01:17:26 UTC 2024
    - 13.4K bytes
    - Viewed (0)
  8. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisSourceModuleResolveCallTestGenerated.java

          }
    
          @Test
          @TestMetadata("MyString.kt")
          public void testMyString() {
            runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/typeAlias/missingDependency/MyString.kt");
          }
    
          @Test
          @TestMetadata("NestedAsymmetricAliasOnlyResolveAsymmetricAlias.kt")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:00 UTC 2024
    - 215.1K bytes
    - Viewed (0)
  9. analysis/analysis-api-fir/tests-gen/org/jetbrains/kotlin/analysis/api/fir/test/cases/generated/cases/components/resolver/FirIdeNormalAnalysisSourceModuleResolveReferenceTestGenerated.java

          }
    
          @Test
          @TestMetadata("MyString.kt")
          public void testMyString() {
            runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/typeAlias/missingDependency/MyString.kt");
          }
    
          @Test
          @TestMetadata("NestedAsymmetricAliasOnlyResolveAsymmetricAlias.kt")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:01 UTC 2024
    - 215.1K bytes
    - Viewed (0)
  10. analysis/analysis-api-standalone/tests-gen/org/jetbrains/kotlin/analysis/api/standalone/fir/test/cases/generated/cases/components/resolver/FirStandaloneNormalAnalysisSourceModuleResolveCallTestGenerated.java

          }
    
          @Test
          @TestMetadata("MyString.kt")
          public void testMyString() {
            runTest("analysis/analysis-api/testData/components/resolver/singleByPsi/typeAlias/missingDependency/MyString.kt");
          }
    
          @Test
          @TestMetadata("NestedAsymmetricAliasOnlyResolveAsymmetricAlias.kt")
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 19:03:00 UTC 2024
    - 215.7K bytes
    - Viewed (0)
Back to top