Created
May 24, 2014 00:31
-
-
Save nicholasf/6975a7e1137b40cba89d to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
iex(8)> defmodule T2 do | |
...(8)> defstruct name: fn -> IO.puts 'hello' end | |
...(8)> end | |
** (CompileError) iex: invalid quoted expression: #Function<0.93347699 in file:iex> | |
(elixir) src/elixir_exp.erl:414: :elixir_exp.expand_arg/2 | |
(stdlib) lists.erl:1352: :lists.mapfoldl/3 | |
(stdlib) lists.erl:1353: :lists.mapfoldl/3 | |
(elixir) src/elixir_exp.erl:420: :elixir_exp.expand_args/2 | |
(elixir) src/elixir_exp.erl:357: :elixir_exp.expand/2 | |
(elixir) src/elixir_exp.erl:414: :elixir_exp.expand_arg/2 | |
(stdlib) lists.erl:1352: :lists.mapfoldl/3 | |
iex(8)> fn -> IO.puts 'hello' end | |
#Function<20.106461118/0 in :erl_eval.expr/5> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment