mirror of
https://github.com/hanzoai/prettier.git
synced 2026-10-30 14:46:22 +00:00
13 lines
236 B
JavaScript
13 lines
236 B
JavaScript
// @flow
|
|
|
|
class A {
|
|
f(x : $Tainted<FakeLocation>) {
|
|
fakeDocument.location = x; // error
|
|
doStuff(x); // ok
|
|
}
|
|
f1(x : $Tainted<FakeLocation>) {
|
|
// TODO(rcastano): should cause an error.
|
|
window.fakeLocation = x;
|
|
}
|
|
}
|