Add a test

This commit is contained in:
scalexm 2021-06-25 00:18:53 +02:00
parent 20fa398fdb
commit 7e8eeec02f
1 changed files with 12 additions and 2 deletions

View File

@ -733,7 +733,7 @@ fn test_raw_idents() {
#[pyclass]
struct Issue1505 {}
macro_rules! issue_1505 {
macro_rules! pymethods {
(
#[pymethods]
impl $ty: ty {
@ -747,7 +747,7 @@ macro_rules! issue_1505 {
};
}
issue_1505!(
pymethods!(
#[pymethods]
impl Issue1505 {
fn issue_1505(&self, _py: Python<'_>) {}
@ -819,3 +819,13 @@ issue_1506!(
}
}
);
#[pyclass]
struct Issue1696 {}
pymethods!(
#[pymethods]
impl Issue1696 {
fn issue_1696(&self, _x: &InstanceMethod) {}
}
);