Parse and reserve typeof keyword. #3228

This commit is contained in:
Ben Blum 2013-08-22 17:00:02 -04:00
parent 2c0f9bd354
commit e9f6f3f2cc
10 changed files with 43 additions and 4 deletions

View file

@ -0,0 +1,13 @@
// Copyright 2013 The Rust Project Developers. See the COPYRIGHT
// file at the top-level directory of this distribution and at
// http://rust-lang.org/COPYRIGHT.
//
// Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
// http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
// <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
// option. This file may not be copied, modified, or distributed
// except according to those terms.
fn main() {
let typeof = (); //~ ERROR `typeof` is a reserved keyword
}