Files
swift-mirror/test/Serialization/too-old.swift
Jordan Rose d06290bb46 [Serialization] Give a better warning for "module too old".
rdar://problem/20998937

Swift SVN r30560
2015-07-24 03:28:09 +00:00

9 lines
418 B
Swift

// RUN: not %target-swift-frontend %s -parse -I %S/Inputs -show-diagnostics-after-fatal 2>&1 | FileCheck %s
// CHECK: :[[@LINE+1]]:8: error: module file was created by an older version of the compiler; rebuild 'too_old' and try again: {{.*}}too_old.swiftmodule{{$}}
import too_old
// Compiler thinks that the module is empty.
// CHECK: :[[@LINE+1]]:1: error: module 'too_old' has no member named 'foo'
too_old.foo()