Skip to content

False positive Error - TS6133 error (declared but its value is never read) report. #19700

@somzJosf

Description

@somzJosf

tsc --version
Version 2.6.1 , Also tried on 2.7.0-dev.20171102

class SomeClass {
	private manualPrice: number = 0;

	public someMethod() {
		this.manualPrice = 10; 
	}
}

and then compile file: tsc --noUnusedLocals

Expected behavior: No erros

Actual behavior: error TS6133: 'manualPriceTotal' is declared but its value is never read.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Working as IntendedThe behavior described is the intended behavior; this is not a bug

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions