Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for embed (0.15 sec)

  1. doc/go1.17_spec.html

    }
    </pre>
    
    <p>
    An interface type <code>T</code> may not embed itself
    or any interface type that embeds <code>T</code>, recursively.
    </p>
    
    <pre>
    // illegal: Bad cannot embed itself
    type Bad interface {
    	Bad
    }
    
    // illegal: Bad1 cannot embed itself using Bad2
    type Bad1 interface {
    	Bad2
    }
    type Bad2 interface {
    	Bad1
    }
    </pre>
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Thu Apr 11 20:22:45 GMT 2024
    - 211.6K bytes
    - Viewed (0)
  2. doc/go_spec.html

    	f Float                 // illegal
    }
    </pre>
    
    <p>
    An interface type <code>T</code> may not embed a type element
    that is, contains, or embeds <code>T</code>, directly or indirectly.
    </p>
    
    <pre>
    // illegal: Bad may not embed itself
    type Bad interface {
    	Bad
    }
    
    // illegal: Bad1 may not embed itself using Bad2
    type Bad1 interface {
    	Bad2
    }
    type Bad2 interface {
    	Bad1
    }
    HTML
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 00:39:16 GMT 2024
    - 279.6K bytes
    - Viewed (0)
Back to top