Community
Participate
Working Groups
var m = [2000,4000]; var count = m[2] ? parseInt(m[2], 10) : 1; --count; // get warning that count must be a number count has been inferred as a variant type of Number | int . These types int, long,float, Number or js.Number should be recognized as a Number type Work around is to use vjet doc cast var count = m[2] ? parseInt(m[2], 10) : 1; //<<Number then warning will go away
Needs to check JstVariant type here to see if all variants are Number or inherits from Number such as int/long/float.
had to unwrap JstInferredType in type check
see previous comment
Created attachment 228118 [details] mylyn/context/zip