Sign in
fuchsia
/
third_party
/
swift
/
refs/tags/tf-merge-2020-09-11
/
.
/
validation-test
/
Evolution
/
Inputs
/
class_resilient_add_virtual_method_subclass.swift
blob: e3891ba41115817ca01a8ee908b2c8154702c985 [
file
] [
log
] [
blame
]
#if BEFORE
open
class
AddVirtualMethod
{
public
init
()
{}
open func f1
()
->
Int
{
return
1
}
}
#else
open
class
AddVirtualMethod
{
public
init
()
{}
open func f1
()
->
Int
{
return
f2
()
+
1
}
open func f2
()
->
Int
{
return
0
}
}
#endif