Skip to content

Unquoting a record gives out an ugly error. #1411

@meh

Description

@meh
== Compilation error on file lib/timezone.ex ==
** (FunctionClauseError) no function clause matching in :elixir_literal.translate/2
    src/elixir_literal.erl:8: :elixir_literal.translate(Timezone.Zone[name: "America/St_Thomas", offset: 0, rule: nil, format: nil, time: nil], {:elixir_scope, nil, false, false, false, Timezone, {:get, 1}, [], nil, nil, nil, nil, nil, ["": 0], nil, [Timezone.Link, Timezone.Rules, Timezone.Rule, Timezone.Zone, Timezone], [{Link, Timezone.Link}, {Rule, Timezone.Rule}, {Rules, Timezone.Rules}, {Zone, Timezone.Zone}], [{Link, Timezone.Link}, {Rule, Timezone.Rule}, {Rules, Timezone.Rules}, {Zone, Timezone.Zone}], "/home/meh/projects/elixir/continuum/lib/timezone.ex", [Kernel, Kernel.Typespec, Record], [], [{Kernel, [&&: 2, ..: 2, <>: 2, @: 1, access: 2, and: 2, atom_to_binary: 1, binary_to_atom: 1, binary_to_existing_atom: 1, binding: 0, binding: 1, binding: 2, case: 2, cond: 1, def: 1, def: 2, def: 4, defdelegate: 2, defexception: 2, defexception: 3, defexception: 4, defimpl: 2, defimpl: 3, defmacro: 1, defmacro: 2, defmacro: 4, defmacrop: 1, defmacrop: 2, defmacrop: 4, defmodule: 2, defoverridable: 1, defp: 1, defp: 2, defp: 4, defprotocol: 2, defrecord: 2, defrecord: 3, defrecordp: 2, defrecordp: 3, delete_elem: 2, destructure: 2, div: 2, elem: 2, function: 1, function: 3, if: 2, in: 2, insert_elem: 3, is_exception: 1, is_range: 1, is_record: 1, is_record: 2, is_regex: 1, match?: 2, nil?: 1, or: 2, receive: 1, rem: 2, set_elem: 3, sigil_B: 2, sigil_C: 2, sigil_R: 2, sigil_W: 2, sigil_b: 2, sigil_c: 2, sigil_r: 2, sigil_w: 2, to_binary: 1, to_char_list: 1, try: 1, unless: 2, use: 1, use: 2, xor: 2, |>: 2, ||: 2]}], [], [{Kernel, [!: 1, !=: 2, !==: 2, *: 2, +: 1, +: 2, ++: 2, -: 1, -: 2, --: 2, /: 2, <: 2, <-: 2, <=: 2, ==: 2, ===: 2, =~: 2, >: 2, >=: 2, abs: 1, apply: 2, apply: 3, atom_to_binary: 2, atom_to_list: 1, binary_part: 3, binary_to_atom: 2, binary_to_existing_atom: 2, binary_to_float: 1, binary_to_integer: 1, binary_to_integer: 2, binary_to_list: 1, binary_to_list: 3, binary_to_term: 1, binary_to_term: 2, bit_size: 1, bitstring_to_list: 1, byte_size: 1, exit: 1, float: 1, float_to_binary: 1, float_to_binary: 2, float_to_list: 1, float_to_list: 2, function_exported?: 3, hd: 1, inspect: 1, inspect: 2, integer_to_binary: 1, integer_to_binary: 2, integer_to_list: 1, integer_to_list: 2, iolist_size: 1, iolist_to_binary: 1, is_alive: 0, is_atom: 1, is_binary: 1, is_bitstring: 1, is_boolean: 1, is_float: 1, is_function: 1, is_function: 2, is_integer: 1, is_list: 1, is_number: 1, is_pid: 1, is_port: 1, is_reference: 1, is_tuple: 1, length: 1, list_to_atom: 1, list_to_binary: 1, list_to_bitstring: 1, list_to_existing_atom: 1, list_to_float: 1, list_to_integer: 1, list_to_integer: 2, list_to_pid: 1, list_to_tuple: 1, macro_exported?: 3, make_ref: 0, max: 2, min: 2, node: 0, node: 1, not: 1, pid_to_list: 1, raise: 1, raise: 2, raise: 3, round: 1, self: 0, size: 1, spawn: 1, spawn: 3, spawn_link: 1, spawn_link: 3, term_to_binary: 1, term_to_binary: 2, throw: 1, tl: 1, trunc: 1, tuple_size: 1, tuple_to_list: 1]}]})
    lists.erl:1339: :lists.mapfoldl/3
    src/elixir_clauses.erl:46: :elixir_clauses.assigns_block/6
    src/elixir_def.erl:212: :elixir_def.translate_clause/6
    src/elixir_def.erl:198: :elixir_def.translate_definition/7
    src/elixir_def.erl:125: :elixir_def.store_definition/9
    /tmp/packerbuild-0/elixir-git/elixir-git/src/elixir-src-build/lib/elixir/lib/enum.ex:293: Enum."-each/2-lists^foreach/1-0-"/2
    /tmp/packerbuild-0/elixir-git/elixir-git/src/elixir-src-build/lib/elixir/lib/enum.ex:293: Enum.each/2

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions