"Fossies" - the Fresh Open Source Software Archive

Member "swift-swift-5.1.2-RELEASE/validation-test/IDE/crashers_2_fixed/0006-crazy-associated-types.swift" (7 Nov 2019, 231 Bytes) of package /linux/misc/swift-swift-5.1.2-RELEASE.tar.gz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) Swift source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file.

    1 // RUN: %target-swift-ide-test -code-completion -code-completion-token=A -source-filename=%s
    2 // REQUIRES: asserts
    3 
    4 protocol a {
    5   associatedtype b
    6 }
    7 protocol c {
    8   associatedtype d : a
    9 }
   10 
   11 struct e<f : c> where f == f.g.b {
   12   #^A^#