Files
swift-mirror/test/decl/class/inheritance_protocol_multi_module.swift
David Farler b7d17b25ba Rename -parse flag to -typecheck
A parse-only option is needed for parse performance tracking and the
current option also includes semantic analysis.
2016-11-28 10:50:55 -08:00

15 lines
415 B
Swift

// RUN: rm -rf %t
// RUN: mkdir -p %t
// RUN: %target-swift-frontend -emit-module-path %t/Mod.swiftmodule -module-name Mod %s
// RUN: %target-swift-frontend -typecheck -verify -I %t %S/Inputs/inheritance_protocol_multi_module_2.swift
/* module Mod */
public protocol MyProtocol {}
open class ClassLevel1: MyProtocol {
public init() {}
}
open class ClassLevel2: ClassLevel1 {
public override init () {}
}