test262/test/language/statements/let/syntax/attempt-to-redeclare-let-binding-with-function-declaration.js
2018-10-23 13:51:16 +02:00

15 lines
373 B
JavaScript

// Copyright (C) 2011 the V8 project authors. All rights reserved.
// This code is governed by the BSD license found in the LICENSE file.
/*---
es6id: B.3.3
description: >
redeclaration within block:
attempt to redeclare let binding with function declaration
negative:
phase: parse
type: SyntaxError
---*/
failIfCodeGetsEvaluated();
{ let f; function f() {} }