Skip to content
This repository was archived by the owner on Nov 24, 2020. It is now read-only.
This repository was archived by the owner on Nov 24, 2020. It is now read-only.

Declaring a invalid function signature produce a nil exception #40

Description

@icaaro

When a try to run a sdkgen with the code below this produce a nil exception fired by the crystal.

function funcName(param1: string):

Error Logging

Unhandled exception: Nil assertion failed (Exception)
  from /usr/lib/crystal/class.cr:148:0 in 'not_nil!'
  from /home/icaro/cubos/sdkgen/src/syntax/token.cr:0:3 in 'filename'
  from /home/icaro/cubos/sdkgen/src/syntax/token.cr:11:5 in 'location'
  from /home/icaro/cubos/sdkgen/src/syntax/parser.cr:289:35 in 'parse_type'
  from /home/icaro/cubos/sdkgen/src/syntax/parser.cr:211:7 in 'parse_operation'
  from /home/icaro/cubos/sdkgen/src/syntax/parser.cr:49:9 in 'parse'
  from /home/icaro/cubos/sdkgen/src/main.cr:38:9 in '__crystal_main'
  from /usr/lib/crystal/crystal/main.cr:97:5 in 'main_user_code'
  from /usr/lib/crystal/crystal/main.cr:86:7 in 'main'
  from /usr/lib/crystal/crystal/main.cr:106:3 in 'main'
  from __libc_start_main
  from _start
  from ???

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions