Skip to content

GitLab

  • Menu
Projects Groups Snippets
    • Loading...
  • Help
    • Help
    • Support
    • Community forum
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
  • ion ion
  • Project information
    • Project information
    • Activity
    • Labels
    • Planning hierarchy
    • Members
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
  • Issues 84
    • Issues 84
    • List
    • Boards
    • Service Desk
    • Milestones
  • Merge requests 3
    • Merge requests 3
  • Deployments
    • Deployments
    • Releases
  • Monitor
    • Monitor
    • Incidents
  • Packages & Registries
    • Packages & Registries
    • Container Registry
  • Analytics
    • Analytics
    • Value stream
    • Repository
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Activity
  • Graph
  • Create a new issue
  • Commits
  • Issue Boards
Collapse sidebar
  • redox-os
  • ionion
  • Issues
  • #942

Closed
Open
Created Feb 14, 2020 by echoSayonara@echoSayonara

bug: Panic when `[` is not closed.

When I tried to assign an array to a variable, I missed to close parenthesis and then ion panicked. I tried to reproduce this behavior and found that using [ without ] after let foo = cause panic. If I forget to close other parenthesis, ion does not panic but only [ just after let foo = cause panic. I append examples to reproduce the error.

let foo = ( // => syntax error
let foo = { // => syntax error
let foo = [ // => panic!

( // => syntax error
{ // => syntax error
[ // => syntax error

let boo = (1, 2,  // => syntax error
let boo = {1, 2,  // => syntax error
let boo = [1, 2,  // => panic!
Edited Dec 12, 2020 by matu3ba
Assignee
Assign to
Time tracking