diff --git a/lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex b/lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex new file mode 100644 index 0000000000..2e9995f4af --- /dev/null +++ b/lib/mix/test/fixtures/dep_with_protocol/lib/proto.ex @@ -0,0 +1,3 @@ +defprotocol DepProto do + def hello(x) +end diff --git a/lib/mix/test/fixtures/dep_with_protocol/mix.exs b/lib/mix/test/fixtures/dep_with_protocol/mix.exs new file mode 100644 index 0000000000..6b618fd34a --- /dev/null +++ b/lib/mix/test/fixtures/dep_with_protocol/mix.exs @@ -0,0 +1,9 @@ +defmodule DepProto.Mixfile do + use Mix.Project + + def project do + [ app: :depproto, + version: "0.1.0" ] + end +end + diff --git a/lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex b/lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex new file mode 100644 index 0000000000..95b9fb2516 --- /dev/null +++ b/lib/mix/test/fixtures/escripttest_protocols/lib/escripttest.ex @@ -0,0 +1,5 @@ +defmodule Escripttest do + def main([protocol]) do + IO.puts Protocol.consolidated?(Module.concat([protocol])) + end +end