mirror of
https://github.com/apple/swift.git
synced 2025-12-14 20:36:38 +01:00
14 lines
406 B
Swift
14 lines
406 B
Swift
// RUN: %empty-directory(%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 () {}
|
|
}
|