Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for fail (0.13 sec)

  1. doc/go1.17_spec.html

    func Split(s string, pos int) (string, string) {
    	return s[0:pos], s[pos:]
    }
    
    func Join(s, t string) string {
    	return s + t
    }
    
    if Join(Split(value, len(value)/2)) != value {
    	log.Panic("test fails")
    }
    </pre>
    
    <p>
    A method call <code>x.m()</code> is valid if the <a href="#Method_sets">method set</a>
    of (the type of) <code>x</code> contains <code>m</code> and the
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    </p>
    
    <ol>
    <li>
    	<p>
    	The type equations are solved for the bound
    	type parameters using <a href="#Type_unification">type unification</a>.
    	If unification fails, type inference fails.
    	</p>
    </li>
    <li>
    	<p>
    	For each bound type parameter <code>P<sub>k</sub></code> for which no type argument
    	has been inferred yet and for which one or more pairs
    HTML
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu May 02 22:43:51 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top