Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Parameterized tags null out the type-parameter-typed value. #133

Closed
froystig opened this issue Jul 28, 2010 · 1 comment
Closed

Parameterized tags null out the type-parameter-typed value. #133

froystig opened this issue Jul 28, 2010 · 1 comment

Comments

@froystig
Copy link
Contributor

The following test:

// -*- rust -*-                                                         

type noption[T] = tag(some(T));

fn main() {
  let noption[int] nop = some[int](5);
  alt (nop) {
    case (some[int](n)) {
      log n;
      check (n == 5);
    }
  }

  let noption[tup(int, int)] nop2 = some[tup(int, int)](tup(17, 42));
  alt (nop2) {
    case (some[tup(int, int)](t)) {
      log t._0;
      log t._1;
      check (t._0 == 17);
      check (t._1 == 42);
    }
  }
}

Logs '0' at all log points and, for the same reason, fails at all check points.

@froystig
Copy link
Contributor Author

Get slots in trans_tag using Semant tables. Closed by f282c5c.

mbrubeck pushed a commit to mbrubeck/rust that referenced this issue Oct 17, 2011
oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
oli-obk pushed a commit to oli-obk/rust that referenced this issue Jul 19, 2017
keeperofdakeys pushed a commit to keeperofdakeys/rust that referenced this issue Dec 12, 2017
kazcw pushed a commit to kazcw/rust that referenced this issue Oct 23, 2018
* Add _mm256_shuffle_epi8

* Add _mm256_permutevar8x32_epi32
dlrobertson pushed a commit to dlrobertson/rust that referenced this issue Nov 29, 2018
Aaron1011 pushed a commit to Aaron1011/rust that referenced this issue Oct 26, 2020
djtech-dev pushed a commit to djtech-dev/rust that referenced this issue Dec 9, 2021
MemoryBuffer::create_from_memory_range should take &[u8], not &str
bjorn3 pushed a commit to bjorn3/rust that referenced this issue Mar 7, 2022
Don't export global allocs which are not statics
This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant