mirror of
https://github.com/hanzoai/prettier.git
synced 2026-10-30 14:46:22 +00:00
13 lines
206 B
JavaScript
13 lines
206 B
JavaScript
/*
|
|
*
|
|
* @flow
|
|
*/
|
|
class A {
|
|
f(tainted : $Tainted<string>) {
|
|
// The Tainted annotation should still flow.
|
|
var safe = tainted;
|
|
// This should give a warning.
|
|
var loc : string = safe;
|
|
}
|
|
}
|