//// [intrinsics.ts]

var hasOwnProperty: hasOwnProperty; // Error

module m1 {
    export var __proto__;
    interface __proto__ {}

    class C<T extends { __proto__: __proto__ }> { }
}

__proto__ = 0; // Error, __proto__ not defined
m1.__proto__ = 0;

class Foo<__proto__> { }
var foo: (__proto__: number) => void;

//// [intrinsics.js]
var hasOwnProperty; // Error
var m1;
(function (m1) {
    var C = (function () {
        function C() {
        }
        return C;
    }());
})(m1 || (m1 = {}));
__proto__ = 0; // Error, __proto__ not defined
m1.__proto__ = 0;
var Foo = (function () {
    function Foo() {
    }
    return Foo;
}());
var foo;
