-
Notifications
You must be signed in to change notification settings - Fork 13k
Closed
Labels
ExternalRelates to another program, environment, or user action which we cannot control.Relates to another program, environment, or user action which we cannot control.
Description
typescript version: 2.3.3
Code
import { Component, OnInit, Input } from '@angular/core';
@Component({
selector: 'elevator',
templateUrl: './elevator.component.html',
styleUrls: ['./elevator.component.scss']
})
export class ElevatorComponent implements OnInit {
@Input() floor: number;
constructor() { }
set floor(value){
}
}
Expected behavior:
I expect to be able to use setter on the floor member
Actual behavior:
I get this error: Duplicate identifier 'floor'. !!!!
Metadata
Metadata
Assignees
Labels
ExternalRelates to another program, environment, or user action which we cannot control.Relates to another program, environment, or user action which we cannot control.