Skip to content

Compile error for two dimensional arrays #9

Description

@Bored66

The following code won't compile:

const colors : number[][] = 
[
    [1, 2]
]; 

with error:

File: '/home/user/WORK/tsnative-boilerplate/ts/main.ts'
Expression: ' 
[
    [1, 2]
]'
Line: '114'
Column: '1'
[ '/home/user/WORK/tsnative-boilerplate/ts/main.ts' ]
Error: Array 'push' for type 'number[]' not found

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions