Files
swift-mirror/validation-test/compiler_crashers_2_fixed/0164-sr7989.swift
2018-06-22 05:23:15 +03:00

12 lines
301 B
Swift

// RUN: %target-typecheck-verify-swift
protocol P1 {}
protocol P2 {}
struct Var<N> {}
extension Var : P2 where N : P1 { }
protocol P3 {}
extension Var : P3 where Self : P2 {} // expected-error {{'Self' is only available in a protocol or as the result of a method in a class; did you mean 'Var'?}}