Should detect const.

It detects const now.

//cc @fengmk2 @dead-horse